package cn.janyd.common.core.util;

import cn.janyd.common.core.exception.ServiceException;

/**
 * @author janyd
 * @since 2020/8/12 20:16
 */
public class ServiceExceptionUtil {

    /**
     * 创建业务异常
     *
     * @param errorCode 错误码
     * @return ServiceException
     */
    public static ServiceException exception(int errorCode) {
        return new ServiceException(errorCode);
    }
}
